<template>
  <div>
    <el-descriptions title="工单详情" :column="2" border>
      <el-descriptions-item label="ID">{{ workOrderData.id }}</el-descriptions-item>
      <el-descriptions-item label="设备ID">{{ workOrderData.deviceId }}</el-descriptions-item>
      <el-descriptions-item label="设备名称">{{ workOrderData.deviceName }}</el-descriptions-item>
      <el-descriptions-item label="片区ID">{{ workOrderData.districtId }}</el-descriptions-item>
      <el-descriptions-item label="片区名称">{{ workOrderData.districtName }}</el-descriptions-item>
      <el-descriptions-item label="告警ID">{{ workOrderData.warId }}</el-descriptions-item>
      <el-descriptions-item label="上报人ID">{{ workOrderData.sedId }}</el-descriptions-item>
      <el-descriptions-item label="上报人名称">{{ workOrderData.sedName }}</el-descriptions-item>
      <el-descriptions-item label="接单维修人员ID">{{ workOrderData.repId }}</el-descriptions-item>
      <el-descriptions-item label="接单维修人员名称">{{ workOrderData.repName }}</el-descriptions-item>
      <el-descriptions-item label="审核人员ID">{{ workOrderData.jugId }}</el-descriptions-item>
      <el-descriptions-item label="审核人员名称">{{ workOrderData.jugName }}</el-descriptions-item>
      <el-descriptions-item label="维修项目ID">{{ workOrderData.type }}</el-descriptions-item>
      <el-descriptions-item label="工单描述">{{ workOrderData.commentOrder }}</el-descriptions-item>
      <el-descriptions-item label="工单描述">{{ workOrderData.commentUser }}</el-descriptions-item>
      <el-descriptions-item label="状态">{{ workOrderData.status }}</el-descriptions-item>
      <el-descriptions-item label="创建时间">{{ workOrderData.timeSend }}</el-descriptions-item>
      <el-descriptions-item label="接单时间">{{ workOrderData.timeAccept }}</el-descriptions-item>
      <el-descriptions-item label="审核时间">{{ workOrderData.timeProcess }}</el-descriptions-item>
      <el-descriptions-item label="完成时间">{{ workOrderData.timeCompleted }}</el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script setup>
defineProps({
  workOrderData: {
    type: Object,
    required: true
  }
})
</script>